<template>
  <div id="app">
    <div id="tab-nav" v-if="this.$route.meta.isNav">
      <router-link to="/music/index">发现音乐</router-link>
      <router-link to="/article/index">精选文章</router-link>
      <router-link to="/movie/index">我的电影</router-link>
    </div>
    <router-view />
  </div>
</template>

<script>
export default {};
</script>

<style>
#app {
  width: 10rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-bottom: 1.2rem;
}
#tab-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: #242424;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
#tab-nav a {
  text-decoration: none;
  color: #aaa;
}
#tab-nav .router-link-active {
  color: #fff;
}
</style>
